<div class="navbar">
  <div class="inner"><span class="corners-top"><span></span></span>

    <ul class="linklist navlinks">
      <li class="icon-home">
      <%= user_current_position(position) %>
      </li>
      	<li class="rightside"><a href="#"></a></li>
      	<li class="rightside"><a href="#"></a></li></ul>
    <ul class="linklist leftside">
    	<% if false %>
      <% if @current_user %>
        <li class="icon-ucp">
            <%= link_to("控制面板",user_path(@current_user),:accesskey => "u") %>
            <%= link_to("我的帖子",posts_users_path) %>
        </li>
      <% end %>
      <% end %>
    </ul>

    <ul class="linklist rightside"> 
      <li class="icon-faq"><a href="#" title="Frequently Asked Questions">提问</a></li>
      <li class="icon-search"><a href="#" title="View the advanced search options">搜索</a></li>
      <% if @current_user.nil? %>
        <li class="icon-register"><%= link_to "注册",signup_path %></li>
        <li class="icon-logout"><%= link_to "登录",login_path %></li>
      <% end %>

      <% if @current_user %>
        <li class="icon-logout"><%= link_to "注销 [ #{@current_user.login} ]",logout_path %></li> 
      <% end %>
    </ul>

    <span class="corners-bottom"><span></span></span>
  </div>
</div>

